<template>
    <div id="notfound">
        <el-empty class="common-tips" description="时间不够,功能没做完,如果有兴趣,可以一起来贡献代码">
            <a target="_blank" href="https://gitee.com/open-gitee/gitee-info">进入 Gitee.Info 在 Gitee 的开源仓库</a>
        </el-empty>

    </div>
</template>
<script>
    import request from "@/lib/request";
    export
        default {
            data() {
                return {
                    userInfo: false,
                }
            },
            created() {
                this.getMyInfo();
            },
            methods: {
                getMyInfo() {
                    let that = this;
                    request({
                        url: "user",
                        method: "get",
                        success(res) {
                            that.userInfo = res;
                        },
                        error(res) {
                            that.$router.push('/login');
                        }
                    });
                }
            }
        }
</script>
<style>
    .home-menu {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 80px;
        background-color: #222;
    }

    .home-user {
        padding: 10px;
    }

    .home-user img {
        width: 60px;
        height: 60px;
    }

    .home-menu-item {
        text-align: center;
        font-size: 12px;
        margin-top: 20px;
        color: #666;
        cursor: pointer;
        display: inline-block;
        text-decoration: none;
    }

    .home-menu-item:hover,
    .home-menu-item-active {
        color: #ccc;
    }

    .home-menu-item .iconfont {
        font-size: 32px;
        display: block;
    }

    .home-menu-item-footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 20px;
    }
</style>